<?php

namespace app\admin\model\activity;

use think\Model;
use think\Db;

class Eventinvite extends Model
{

    

    

    // 表名
    protected $name = 'event_invite';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    
    public function coupon(){
        $couponlist = Db::name('shopro_coupon')->order('id desc')->select();
        return $couponlist;
    }
  
    public function couponsta()

    {
        return $this->belongsTo('\app\admin\model\shopro\Coupon', 'gift_coupon', 'id', [], 'LEFT')->setEagerlyType(0);

    }





}
